#ifndef MAFENETRECHAT_H
#define MAFENETRECHAT_H

#include <QTextEdit>
#include <QLineEdit>
#include <QKeyEvent>

#include "MaFenetre.h"
#include "MonBoutonPush.h"
#include "Client.h"

class MaFenetreChat : public MaFenetre
{
    Q_OBJECT

private:
    QTextEdit *zoneText;
    QHBoxLayout *layoutEnvoyer;
    QLineEdit *message;
    MonBoutonPush *monBoutonPushEnvoyer;
    Client *client;

public:
    MaFenetreChat(QTabWidget *parent, Client *client);
    void focusEcriture();
    void resetEcriture();
    void recevoirEnvoyerATous(const QString &message);

public slots:
    void envoyerATous();
};

#endif // MAFENETRECHAT_H
